package com.baidu.shop.feign;

import com.alibaba.fastjson.JSONObject;
import com.baidu.shop.base.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description:
 * @ClassName: SearchFeign
 * @Author: User
 * @date: 2020.09.27 14:26
 * @version: 1.0
 */
@FeignClient(value = "search-server",contextId = "searchService")
public interface SearchFeign{

    @GetMapping(value = "es/deleteById")
    Result<JSONObject> deleteSearchById(@RequestParam String id);

    @GetMapping(value = "es/initGoodsEsData")
    Result<JSONObject> initGoodsEsData(@RequestParam Integer spuId);
}
